package com.sneakxy.mybase4j.platform.beans;

import com.sneakxy.mybase4j.base.bean.BaseEntity;
import com.sneakxy.mybase4j.base.bean.TimeEntity;
import com.sneakxy.mybase4j.base.bean.ValidEdit;
import com.sneakxy.mybatis.commons.annotations.Column;
import com.sneakxy.mybatis.commons.annotations.Table;
import com.sneakxy.mybatis.commons.orm.generation.GeneratedValue;
import com.sneakxy.mybatis.commons.orm.generation.GenerationType;

import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;
import org.springframework.data.annotation.Id;

/**
 * 自启动
 * @author 潜行的青衣
 * @see
 */
@Table("t_mb4j_launcher")
public class Launcher extends BaseEntity<String> implements TimeEntity {

	private final static long serialVersionUID = -1L;

	@Id
	@NotBlank(groups = {ValidEdit.class})
	@Size(max=32)
	@Column("id")
	@GeneratedValue(strategy = GenerationType.UUID)
	private String id;

	@NotBlank
	@Size(max=10)
	@Column("name")
	private String name;
	
	@NotBlank
	@Size(max=50)
	@Column("module")
	private String module;

	@Size(max=100)
	@Column("memo")
	private String memo;
	
	@Column("enable")
	private boolean enable;
	
	@Column("manual")
	private boolean manual;

	@Column("sort")
	private Integer sort;

	@Column("createtime")
	private String createtime;

	@Column("updatetime")
	private String updatetime;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getModule() {
		return module;
	}

	public void setModule(String module) {
		this.module = module;
	}

	public String getMemo() {
		return memo;
	}

	public void setMemo(String memo) {
		this.memo = memo;
	}

	public boolean getEnable() {
		return enable;
	}

	public void setEnable(boolean enable) {
		this.enable = enable;
	}

	public boolean isManual() {
		return manual;
	}

	public void setManual(boolean manual) {
		this.manual = manual;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getCreatetime() {
		return createtime;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public String getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(String updatetime) {
		this.updatetime = updatetime;
	}

}
